package com.cpa.admin.controller;

import com.cpa.admin.config.BaseController;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhen.zhao01
 * @CreateDate 2018/10/31
 */
@Controller
public class SiteErrorController extends BaseController {


    @GetMapping("error")
    public String handleError(HttpServletRequest request) {
        return "/error";
    }


    @GetMapping("password_error")
    public String passwordError() {
        return "password_error";
    }

}
